Release 10.1A: OpenEdge Deployment:
Managing 4GL Applications


Using a startup procedure

The simplest output-routing scheme consists of setting up an OpenEdge application startup procedure for each printer on a system. Each startup procedure could contain the Printer (-o) startup parameter to designate a particular printer as the default printer for the current OpenEdge session.

Figure 7–1 shows a sample application startup procedure on UNIX. This application startup procedure designates lpr -Plw as the default print device for the current OpenEdge session and starts up an OpenEdge application located in the /usr/appl1 directory that access a database called appldb.

Figure 7–1: Sample application startup procedure (UNIX)

Figure 7–2 shows a sample application startup procedures on Windows. This application startup procedure designates LPT2 as the default print device for the current OpenEdge session and starts up an OpenEdge application located in the /usr/appl1 directory that access a database called appldb.

echo off 
set APPL1=\usr\APPL1 
set PROPATH=%PROPATH%;%APPL1% 
%DLC%\_progres -D 20  -o LPT2 -p  
\usr\APPL1\mainmenu.p appldb 

Figure 7–2: Sample application startup procedure (Windows)

After the startup procedures are set up for each system printer, you can designate users to use different startup procedures depending on which output destination they want. For easy user access and maintenance, all of the startup procedures should be located in the directory where the system software is located.


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095